﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: StatOnlineEntity.cs
// 修改时间：2020-9-8 10:40:10
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：StatOnline 的实体类.
	/// </summary>
	[Table("StatOnline")]
	public partial class StatOnlineEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// (null)(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _userIP = string.Empty;
		/// <summary>
		/// 访问者IP
		/// </summary>
		[Column("UserIP",TypeName="varchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserIP
		{
			get {return _userIP;}
			set {_userIP = value;}
		}
		
		private System.String _userAgent = string.Empty;
		/// <summary>
		/// 客户端信息
		/// </summary>
		[Column("UserAgent",TypeName="varchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserAgent
		{
			get {return _userAgent;}
			set {_userAgent = value;}
		}
		
		private System.String _userPage = string.Empty;
		/// <summary>
		/// 所在页面
		/// </summary>
		[Column("UserPage",TypeName="varchar(4000)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserPage
		{
			get {return _userPage;}
			set {_userPage = value;}
		}
		
		private DateTime? _onTime = null;
		/// <summary>
		/// 上站时间
		/// </summary>
		[Column("OnTime",TypeName="datetime")]
		public DateTime? OnTime
		{
			get {return _onTime;}
			set {_onTime = value;}
		}
		
		private DateTime? _lastTime = null;
		/// <summary>
		/// 最后刷新时间
		/// </summary>
		[Column("LastTime",TypeName="datetime")]
		public DateTime? LastTime
		{
			get {return _lastTime;}
			set {_lastTime = value;}
		}
		
		#endregion
	}
}
